package com.kunteng.ynhxksh.service;

/**
 * Created By ShiYun with IntelliJ IDEA on 2018/4/2 10:48
 *
 * @author: ShiYun
 * @Email: 515867726@qq.com
 * @Date: 2018/4/2
 * To change this template use File | Settings | File Templates.
 */

import com.kunteng.ynhxksh.dao.YCYJDao;
import com.kunteng.ynhxksh.entity.T_COMPANY_INFORMATION_VO;
import com.kunteng.ynhxksh.entity.T_POS_MANAGE_VO;
import com.kunteng.ynhxksh.mapper.T_DAY_NSRKPMapper;
import com.kunteng.ynhxksh.mapper.T_DAY_NSRMapper;
import com.kunteng.ynhxksh.mapper.T_POS_MANAGEMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 异常预警服务
 */
@Service
public class YCYJService implements YCYJDao {

    Logger logger = LoggerFactory.getLogger(YCYJService.class);

    @Autowired
    private T_DAY_NSRMapper t_day_nsrMapper;
    @Autowired
    private T_DAY_NSRKPMapper t_day_nsrkpMapper;
    @Autowired
    private T_POS_MANAGEMapper t_pos_manageMapper;


    @Override
    public List<T_COMPANY_INFORMATION_VO> fingByShopRqAndJye(String date) {
        logger.info("fingByShopRqAndJye {}", date);
        return t_day_nsrMapper.fingByShopRqAndJye(date);
    }

    @Override
    public List<T_COMPANY_INFORMATION_VO> fingByShopRqAndKpl(String date) {
        logger.info("fingByShopRqAndKpl {}", date);
        return t_day_nsrkpMapper.fingByShopRqAndKpl(date);
    }

    @Override
    public List<T_COMPANY_INFORMATION_VO> fingByShopRqAndKpeGtJye(String date) {
        logger.info("fingByShopRqAndKpeGtJye {}", date);
        return t_day_nsrkpMapper.fingByShopRqAndKpeGtJye(date);
    }

    @Override
    public List<T_POS_MANAGE_VO> findByOfflinePOS(String date) {
        logger.info("findByOfflinePOS {}", date);
        return t_pos_manageMapper.findByOfflinePOS(date);
    }
}
